package com.tracy.life.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.util.Log;

import java.util.List;

/**
 * ***********************************************************
 * author: tracy
 * time: 2016/7/20 21:42
 * name:
 * overview:
 * usage:
 * *************************************************************
 */
public class Description_VpAdapter extends FragmentPagerAdapter {

    private List<Fragment> mList;

    public Description_VpAdapter(FragmentManager fm, List<Fragment> mList) {
        super(fm);
        this.mList = mList;
    }

    @Override
    public Fragment getItem(int position) {
        return mList.get(position);
    }

    @Override
    public int getCount() {
        Log.i("BottomAdapter", mList.size() + "");
        return mList.size();
    }

}
